Skip to main content
Version: 1.0.2

Get Companies with Pagination

The Get Companies with Pagination API enables to fetch and show the list of companies.

Method: POST

{{URL}}/jsonrpc

Headers

NameValue
Content-Typeapplication/json

Example

Payload Parameters
ParameterDescription

id

Mandatory

String

Unique ID of request

Example – "1"

method

Mandatory

String

Method Name

Example – "VisaService.GetCompaniesWithPagination "

params

Object

api

Object

credential

Mandatory

String

API credential provided by NetXD

Example – "Basic cy5wYXJhbWVzd2FyYW4rMkBiYW5rY2J3Lm9yZzpUZXN0QDEyMzQ="

signature

Mandatory

String

Signature of the digitally signed payload

Example – "MEQCICSDF4HIunb4xDLVEK9IOJYhT6j4wq5FwfJILSb4xbeSAiBdmpkV7uPB+39O6S+ea/61ar3dBmBNSU9ay229vin7sA=="

payload

Object

pageNo

Optional

Number

Current page number

Example – 1

pageSize

Optional

Number

Number of records per page that can contain

Example – 10


curl --location --globoff '{{URL}}/jsonrpc' \
--header 'Content-Type: application/json' \
--data '{"id":"1","method":"VisaService.GetCompaniesWithPagination","params":{"api":{"credential":"Basic c3VwcG9ydCsxQG5ldHN5cy1pbmMuY29tOjM5ZDYxOGJkNTVmNzQ4ZGQ4ZWY4NWI5NWQxY2RlNDE5","signature":"MEQCICSDF4HIunb4xDLVEK9IOJYhT6j4wq5FwfJILSb4xbeSAiBdmpkV7uPB+39O6S+ea/61ar3dBmBNSU9ay229vin7sA=="},"payload":{"pageNo":1,"pageSize":10}}}'

Body


{
"id": "1",
"method": "VisaService.GetCompaniesWithPagination",
"params": {
"api": {
"credential": "Basic c3VwcG9ydCsxQG5ldHN5cy1pbmMuY29tOjM5ZDYxOGJkNTVmNzQ4ZGQ4ZWY4NWI5NWQxY2RlNDE5",
"signature": "MEQCICSDF4HIunb4xDLVEK9IOJYhT6j4wq5FwfJILSb4xbeSAiBdmpkV7uPB+39O6S+ea/61ar3dBmBNSU9ay229vin7sA=="
},
"payload": {
"pageNo":1,
"pageSize":10
}
}
}

Response: 201

Response Parameters
ParameterDescription

jsonrpc

String

JSON RPC VERSION

Example – "2.0"

result

Object

companies

Array

id

String

Unique ID of company

Example – "65df5bd7bc2422fb17c975f6"

createdDate

String

Date and time of the company was created

Example – "2024-02-28T16:14:15.457Z"

active

Boolean

Whether the company is active or not

Example – false

orgName

String

Name of the company

Example – "CCCC"

approve

Boolean

Whether the company is approved or not

Example – false

accountNumber

String

Account number of company

Example – "12313233 "

companyResponse

Object

statusText

String

Current status of the company

Example – "ACTIVE "

ceProcessDate

String

Date and time of the risk score was processed by context engine

Example – "0001-01-01T00:00:00Z"

riskScore

String

Level of risk associated with the company

Example – "Disabled"

watchListCount

String

Number of times the company appears on watchlist

Example – "Disabled"

nsProcessDate

String

Date and time of the company was processed for name screening

Example – "0001-01-01T00:00:00Z"

status

String

Current approval status of the company

Example – "WAITING_FOR_APPROVAL"

approvedDate

String

Date and time of the company was approved

Example – "0001-01-01T00:00:00Z"

updatedDate

String

Date and time of the company information was last updated

Example – "0001-01-01T00:00:00Z"

owner1WatchListCount

String

Number of times the owner1 of the company appears on watchlist

Example – "Disabled"

owner2WatchListCount

String

Number of times the owner2 of the company appears on watchlist

Example – "Disabled"

owner3WatchListCount

String

Number of times the owner3 of the company appears on watchlist

Example – "Disabled"

isOnFlyCorporate

Boolean

Determines adding new companies for payment

If enabled (True) – allows for addition of new company during payment

If disabled (False) – new company can be added only through ‘addCompany' API call

id

String

Unique ID of the request

Example – "1"


{
"jsonrpc": "2.0",
"result": {
"totalElements": 1,
"companies": [
{
"id": "65df5bd7bc2422fb17c975f6",
"createdDate": "2024-02-28T16:14:15.457Z",
"active": false,
"orgName": "CCCC",
"approve": false,
"accountNumber": "12313233",
"companyResponse": {
"statusText": "ACTIVE"
},
"ceProcessDate": "0001-01-01T00:00:00Z",
"riskScore": "Disabled",
"watchListCount": "Disabled",
"nsProcessDate": "0001-01-01T00:00:00Z",
"status": "WAITING_FOR_APPROVAL",
"approvedDate": "0001-01-01T00:00:00Z",
"updatedDate": "0001-01-01T00:00:00Z",
"owner1WatchListCount": "Disabled",
"owner2WatchListCount": "Disabled",
"owner3WatchListCount": "Disabled",
"isOnFlyCorporate": false
}
]
},
"id": "1"
}